<!-- 添加购物车成功页面 -->
<template>
    <el-row>
   
        <el-col :sm="24" :lg="24">
            <el-result icon="success" :title='JSON.parse(info).name' :sub-title='JSON.parse(info).description'>
                <template #extra>
                    <!-- <el-button type="primary"><router-link :to="{ name: 'detail', params: { productInfo: JSON.stringify(info)}}"> 到商品详情页</router-link></el-button> -->
                    <el-button type="primary" @click='toCar()'> 到购物车</el-button>
                </template>
            </el-result>
        </el-col></el-row>
</template>
<script>


export default {

    name: "succcess",
    props: ['info'],
    methods: {
        toDetail(parms) {
            let that = this
            this.$router.push({ name: "detail", parms: { productInfo: JSON.stringify({parms}) } })
        },
        toCar() {
            let that = this
            that.$router.push({ name: "pnormal" })
        }
    },
}
const goBack = () => {
    // JSON.parse(info);
}

</script>